import request from '@/utils/request';
export const articleList = () => {
  return request({
    methods: 'get',
    url: '/my/cate/list'
  });
};

//
export const addArticle = () => {
  return request({
    methods: 'post',
    url: '/my/cate/add'
  });
};

export const articleDetails = () => {
  return request({
    methods: 'get',
    url: '/my/cate/info'
  });
};

export const deleteArticle = () => {
  return request({
    methods: 'delete',
    url: '/my/cate/del'
  });
};

export const upDateArticle = () => {
  return request({
    methods: 'put',
    url: '/my/cate/info'
  });
};
// 文章管理  获取文章列表
export const getManageList = (params) => {
  return request({
    url: '/my/article/list',
    methods: 'get',
    params
  });
};
